package com.swust.monitorProject.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.swust.monitorProject.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author shuaixin
 * @since 2024-12-24
 */
@Mapper

public interface UserMapper extends BaseMapper<User> {
    @Update("update user set user_password = #{psw} where user_id = #{userID}")
    int changePassword(Long userId, String psw);

}
